package com.qing.web_freemarke.scheduling;


import com.qing.web_freemarke.service.weblog.WebLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.scheduling.annotation.Scheduled;

/**
 * 定时删除日志
 */
@EnableScheduling
public class WebLogScheduling {

	@Autowired
	private WebLogService webLogService;

	@Scheduled(cron = "55 59 23 * * ? *")
	public void deleteWebLog() {
		webLogService.deleteWebLog();
	}


}
